const CracoLessPlugin = require("craco-less");
//以当前文件所处的地址为起点来查找某一个目录的绝对的地址
const path = require("path");
const pathResolve = (pathUrl) => path.join(__dirname, pathUrl);
module.exports = {
    webpack: {
        alias: {
            "@": pathResolve("src"),
        },
    },
    plugins: [{
        plugin: CracoLessPlugin,
        options: {
            lessLoaderOptions: {
                lessOptions: {
                    modifyVars: { "@primary-color": "blue" },
                    javascriptEnabled: true,
                },
            },
        },
    }, ],
};